const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  productionSourceMap: false, // 生成关闭map
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    port: 15000,
    proxy: {
      '/api': {
        target: "http://localhost:8160",
        // target: "http://150.158.30.225:10000",
        ws: true,
        changeOrigin: true
      },
    },
    allowedHosts: "all"
  },


  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = "校园招聘"
        return args
      })
  }
})
